<script>
	export default {
		onLaunch: function() {
			// #ifdef H5
			// 强制手机模式浏览
			if(uni.getSystemInfoSync()['windowWidth']>750){
				this.timer = setInterval(()=>{
					uni.showModal({
						title:"温馨提醒",
						content:"为了更好的体验，请用手机模式浏览",
						showCancel:false,
						success(res){
							if (res.confirm) {
								console.log('用户点击确定');
							}
						}
					});
				},200);
			}
			// #endif
			
			console.log('App Launch');
			let app = this.globalData;
			app.$Helper = this.$Helper;
			app.$Request = this.$Request;
			
			// #ifdef APP-NVUE
			var domModule = weex.requireModule('dom');
			domModule.addRule('fontFace', {
			  'fontFamily': "tpf-iconfont'",
			  'src': "url('https://at.alicdn.com/t/font_2355434_q77jwdmovdd.ttf')"
			});
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
